package com.hiwhitley.himei.contract;

import com.hiwhitley.himei.entity.FindMoreInfo;
import com.hiwhitley.himei.mvpframe.BaseModel;
import com.hiwhitley.himei.mvpframe.BasePresenter;
import com.hiwhitley.himei.mvpframe.BaseView;

import java.util.List;

import rx.Observable;

/**
 * Created by hiwhitley on 2016/9/28.
 */

public interface CommonFindContract {
    interface Model extends BaseModel {
        Observable<FindMoreInfo> getCommonFinds(String name, String strategy);
    }

    interface View extends BaseView{
        void showCommonFind(List<FindMoreInfo.ItemListEntity> listEntities);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void loadCommonFind(String name, String strategy);
    }
}
